home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / May 96 / Re FW_DECLARE_AUTO < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.4 KB  |  [TEXT/ttxt]

  1. Subject:     Re: FW_DECLARE_AUTO
  2. Sent:        5/22/96 10:28 AM
  3. Received:    5/22/96 10:51 AM
  4. From:        Henri Lamiraux, lamiraux@apple.com
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >Dear ODF Team:
  9. >
  10. >Should all classes that use the FW_DECLARE_AUTO macro also use the
  11. >FW_END_CONSTRUCTOR and FW_START_DESTRUCTOR macros and vice-versa?
  12. >
  13. >I ask the question because this rule is not always true with ODF example
  14. >code. Among other, CHelloDragCommand uses the FW_DECLARE_AUTO macro, but
  15. >its destructor has no FW_START_DESTRUCTOR macro. The CNothingPart also uses
  16. >the FW_DECLARE_AUTO macro, but neither its constructor nor its destructor
  17. >uses the FW_END_CONSTRUCTOR and FW_START_DESTRUCTOR macros.
  18. >
  19. >What is really strange is that not using the proper macro combination
  20. >causes link errors with my part, but it is obviously not always the case
  21. >since you did compile ODF examples...
  22. >
  23. >Serge
  24. >
  25.  
  26.  
  27. Yes, if you use the FW_DECLARE_AUTO macro you need to use the 
  28. FW_START_DESTRUCTOR and
  29. FW_END_CONSTRUCTOR macros.
  30.  
  31. If you use the CodeWarrior native exceptions you don't need to use at all 
  32. those macros.
  33.  
  34. .......................................................................
  35.  Henri Lamiraux                                      lamiraux@apple.com
  36.  Apple Computer, Inc.                 OpenDoc(tm) Development Framework
  37. .......................................................................
  38.  
  39.